<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-04-18
 * Time: 10:49
 */
namespace component;


class markdown extends \CMaker\Component{

    public static function attr()
    {
       return [
         'name' => 'zxc',
       ];
    }

    public static function dom(){
        $name = self::$attr['name'];
        $html = <<<EOT
        THIS IS {$name}
EOT;
        return $html;
    }

    public static function script($attr)
    {
        $js = <<<EOT
        console.log('123');
EOT;
        return $js;
        
    }

}